package com.yjt.fresh.api;

import com.wzgiceman.rxretrofitlibrary.retrofit_rx.Api.BaseApi;
import com.wzgiceman.rxretrofitlibrary.retrofit_rx.listener.HttpOnNextListener;
import com.yjt.fresh.httpservice.HttpPostService;

import retrofit2.Retrofit;
import rx.Observable;

/**
 * 获取城市列表
 * @author mcc
 * @date 2018-06-28
 */

public class ApiGetCities extends BaseApi {
    public ApiGetCities(HttpOnNextListener listener, boolean showProgress, boolean cache, boolean cancel) {
        super(listener, showProgress, cache, cancel);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        return retrofit.create(HttpPostService.class).getCities();
    }
}
